package com.lzy.entity.dto;

import java.util.ArrayList;
import java.util.List;

public class TreeNode {
	
	private int id ;
	
	private String text ;
	
	private boolean leaf ;
	
	private List<TreeNode> children = new ArrayList<TreeNode>() ;
	
	public TreeNode() {
	}

	public TreeNode(int id, String text, List<TreeNode> children) {
		this.id = id;
		this.text = text;
		this.children = children;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	public String getText() {
		return text;
	}
	
	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}
}